package com.iccct.feign.remote;

import com.iccct.feign.Constant.ServerConstant;
import com.iccct.feign.common.Response;
import com.iccct.feign.model.NewsReq;
import com.iccct.feign.model.ReservoirNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * comment
 *
 * @author iccct (taowutt1@gmail.com)
 * @since 2021-07-28  17:48
 */
@FeignClient(value = ServerConstant.RESERVOIR_NEW_SERVICE)
@RequestMapping("/reservoir/pc/news")
public interface IReservoirNewsService {


    @PostMapping("/insert")
    public Response insertNews(@RequestBody NewsReq newsReq);


    @PostMapping("/findNews")
    public Response findNews(@RequestBody ReservoirNews reservoirNews);
}
